
const _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault');

exports.__esModule = true;
exports.default = void 0;

const _babelHelperVueJsxMergeProps = _interopRequireDefault(require('@vue/babel-helper-vue-jsx-merge-props'));

const _utils = require('../utils');

const _functional = require('../utils/functional');

// Utils
const _createNamespace = (0, _utils.createNamespace)('divider');
const createComponent = _createNamespace[0];
const bem = _createNamespace[1];

function Divider(h, props, slots, ctx) {
  let _bem;

  return h('div', (0, _babelHelperVueJsxMergeProps.default)([{
    attrs: {
      role: 'separator',
    },
    style: {
      borderColor: props.borderColor,
    },
    class: bem((_bem = {
      dashed: props.dashed,
      hairline: props.hairline,
    }, _bem[`content-${props.contentPosition}`] = slots.default, _bem)),
  }, (0, _functional.inherit)(ctx, true)]), [slots.default && slots.default()]);
}

Divider.props = {
  dashed: Boolean,
  hairline: {
    type: Boolean,
    default: true,
  },
  contentPosition: {
    type: String,
    default: 'center',
  },
};

const _default = createComponent(Divider);

exports.default = _default;
